package org.suk.dp.responsibilityChain.example;

/**
 * Description: 申请<br/>
 * @version V1.0  2017/6/22 10:36  by 石冬冬(dongdong.shi@ucarinc.com) - Heil Hitler
 */
public class Request {
    /**
     * 请假类别
     */
    private RequestTypeEnum requestType;
    /**
     * 请假内容
     */
    private String content;
    /**
     * 请假数量
     */
    private int number;

    public Request(RequestTypeEnum requestType, String content, int number) {
        this.requestType = requestType;
        this.content = content;
        this.number = number;
    }

    public RequestTypeEnum getRequestType() {
        return requestType;
    }

    public void setRequestType(RequestTypeEnum requestType) {
        this.requestType = requestType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public enum RequestTypeEnum{
        LEAVE("请假"),SALARY("加薪");
        RequestTypeEnum(String name) {
            this.name = name;
        }
        private String name;
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }
    }
}
